4. Arduino Tutorial =================== 4.1 Resource download --------------------- Arduino information contains library files and project code,please click to download for follow-up study. Data download: :download:`Arduino <./Arduino.7z>` Download keyes BT Car APP : - **Android APK** : https://xiazai.keyesrobot.cn/APP/keyes%20BT%20Car.apk - **Google Play**\ :https://play.google.com/store/apps/details?id=com.keyestudio.keyesbtcar - **Apple Store** :https://apps.apple.com/cn/app/keyes-bt-car/id1455282913 4.2 Software Download --------------------- Open the browser and search: https://www.arduino.cc/en/software, we will take WINDOWS system as an example to show you how to download and install. |image1| You just need to click JUSTDOWNLOAD,then click the downloaded file to install it. And when the ZIP file is downloaded,you can directly unzip and start it. |image2| 4.3 Set Arduino IDE ------------------- Connecting the board to the computer,and select the development board and port. |image3| Before uploading the program to the board, let’s demonstrate the function of each symbol in the Arduino IDE toolbar. |image4| 1- Used to verify whether there is any compiling mistakes or not. 2- Used to upload the sketch to your Arduino board. 3- Used to send the serial data received from board to the serial plottle. 4- Used to send the serial data received from board to the serial monitor. 4.4 Start Your First Program ---------------------------- Open the file to select Example, choose BLINK from BASIC, as shown below: |image5| |image6| Set board and COM port, the corresponding board and COM port are shown on the lower right of IDE. |image7| Click\ |image8|\ to start compiling the program, check errors. |image9| Click\ |image10|\ to upload the program, upload successfully. |image11| Upload the program successfully, the onboard LED lights on for 1s, lights off for 1s. Congratulation, you have finished the first program. 4.5 Add Library --------------- Open the Arduino IDE, follow [Sketch] → [Include Library] → [Add .zip Library]. This method can only import one library file at a time. If the product has multiple libraries, please import them one by one following this process! |image12| 4.6 Project ----------- The entire project starts with the basic program. The course will guide you step by step, from simple to complex, to program a robotic car while learning about electronics and mechanical concepts. I bet you’re already eager to give it a try. So, let’s get started! **Note: (G), marked on each sensor and module, is the negative pole and connected to “G”, “-”or “GND”on the sensor shield or control board ; (V) is the positive pole and linked with V , VCC, + or 5V on the sensor shield or control board.** **Experiments should be conducted in line with the wiring diagram, including the use of right components and the wiring methods. For example, the supply power applied in the hook-up diagram is external power , so you will have to use external power rather than USB cable.** .. toctree:: :maxdepth: 1 Project/Project1 Project/Project2 Project/Project3 Project/Project4 Project/Project5 Project/Project6 Project/Project7 Project/Project8 Project/Project9 Project/Project10 Project/Project11 Project/Project12 Project/Project13 Project/Project14 Project/Project15 .. |image1| image:: media/1.gif .. |image2| image:: media/2.gif .. |image3| image:: media/Anima.gif .. |image4| image:: media/image-20260224171253810.png .. |image5| image:: media/image-20260224171742491.png .. |image6| image:: media/image-20260224171833064.png .. |image7| image:: media/image-20260224171917646.png .. |image8| image:: media/image-20260224172046341.png .. |image9| image:: media/image-20260224172006917.png .. |image10| image:: media/image-20260224172102907.png .. |image11| image:: media/image-20260224172425292.png .. |image12| image:: media/144.gif